﻿using Adnc.Application.Shared.Dtos;
using System;
using System.Collections.Generic;
using System.Text;

namespace WYT.Ord.Application.Contracts.Dtos.Coupon
{
    /// <summary>
    /// 用户优惠券
    /// </summary>
    public class CouponDto : IDto
    {
        /// <summary>
        /// 用户优惠券ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 优惠券ID
        /// </summary>
        public long CouponId { get; set; }

        /// <summary>
        /// 优惠券名称
        /// </summary>
        public string CouponName { get; set; }

        /// <summary>
        /// 优惠券类型 1、抵扣 2、满减 3 折扣
        /// </summary>
        public int CouponType { get; set; }

        /// <summary>
        /// 使用说明
        /// </summary>
        public string Instructions { get; set; }

        /// <summary>
        /// 有效开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 有效结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 是否可以叠加使用
        /// </summary>
        public bool IsSuperposition { get; set; }

        /// <summary>
        /// 面额
        /// </summary>
        public Decimal Amount { get; set; }

        /// <summary>
        /// 使用条件
        /// </summary>
        public Decimal ReachAmount { get; set; }

        /// <summary>
        /// 最大优惠金额(折扣)
        /// </summary>
        public Decimal MaxAmount { get; set; }

        /// <summary>
        /// 商品使用限制 1：全场;2：部分商品;3：第三方商品;4：自营商品
        /// </summary>
        public int GoodsAstrict { get; set; }

        /// <summary>
        /// 适用的商品
        /// </summary>
        public long[] AvailableGoods { get; set; }

        /// <summary>
        /// 优惠券状态
        /// </summary>
        public int State { get; set; }
    }
}
